<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>user</title>
</head>
<body>
<!--<div th:object="${user}">
    <p>Name:<span th:text="*{username}">Sebastian</span></p>
    <p>Address:<span th:text="*{address}">ShenZhen</span></p>
</div>-->

<table>
    <tr>
        <th>序号</th>
        <th>姓名</th>
        <th>地址</th>
    </tr>
    <tr th:each="user,userstats : ${users}">
        <td th:text="${userstats.count}+'-'+${user.username}+'-'+${userstats.size}">xuhao</td>
        <td th:text="${user.username}">minzi</td>
        <td th:text="${user.address}">dizhi</td>
    </tr>
</table>
</body>
</html>